package com.pan.admin.module.api.dao;

import com.pan.admin.module.api.entity.qo.ApiKeyHistoryBillQO;
import com.pan.admin.module.api.entity.vo.ApiKeyBillVO;
import com.pan.admin.module.api.entity.vo.ApiKeyHistoryBillDetailVO;
import com.pan.admin.module.api.entity.vo.ApiKeyHistoryBillVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ApiKeyHistoryBillDao {
    List<ApiKeyHistoryBillVO> listApiKey(ApiKeyHistoryBillQO apiKeyHistoryBillQO);

    List<ApiKeyBillVO> listApiKeyBill (ApiKeyHistoryBillQO apiKeyHistoryBillQO);

    List<ApiKeyHistoryBillVO> listApiKeySurplusBill(ApiKeyHistoryBillQO apiKeyHistoryBillQO);

    List<ApiKeyHistoryBillVO> listLoanProductTotalConsumption (ApiKeyHistoryBillQO apiKeyHistoryBillQO);


    /**
     *  根据某个渠道获取账单详情
     *
     *  @param  apiKeyHistoryBillQO
     *  @return List
     */
    List<ApiKeyHistoryBillDetailVO> getBillDetail(ApiKeyHistoryBillQO apiKeyHistoryBillQO);
}
